package com.shangxia.monomer.business.base.controller;


import com.shangxia.monomer.business.base.entity.SysLog;
import com.shangxia.monomer.business.base.entity.User;
import com.shangxia.monomer.business.base.service.ISysLogService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author shangxia
 * @since 2021-07-31
 */
@RestController
@RequestMapping("/base/sysLog")
public class SysLogController {

    @Autowired
    private ISysLogService logService;

    @PostMapping("/list")
    @ApiOperation("全部用户")
    public List<SysLog> queryAll() {
        return logService.list();
    }

}
